package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiModuleMessage;

public class Mmochat_SetPlayerDstId extends SkymobiModuleMessage {
	private int roleId;
	private int dstServerId;

	public Mmochat_SetPlayerDstId() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_1_29);
	}

	public Mmochat_SetPlayerDstId(int dstId) {
		setDstId(dstId);
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_1_29);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		roleId = in.getInt();
		dstServerId = in.getInt();
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putInt(roleId);
		out.putInt(dstServerId);
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public int getDstServerId() {
		return dstServerId;
	}

	public void setDstServerId(int dstServerId) {
		this.dstServerId = dstServerId;
	}

}
